package org.dromara.business.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.business.domain.Post;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 评论业务对象 post
 *
 * @author Lion Li
 * @date 2025-03-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Post.class, reverseConvertGenerate = false)
public class PostBo extends BaseEntity {

    /**
     * 编号
     */
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long postId;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 图片
     */
//    @NotBlank(message = "图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String imgId;

    /**
     * 成品编号
     */
//    @NotNull(message = "成品编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long watchId;
    @NotNull(message = "星级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer level;
    private String userName;
    private Long avatar;
    //打手id
    private Long waiterId;
    private Long orderId;
}
